package com.example.myapplication8;

import java.io.Serializable;
import java.util.List;

// 实现Serializable便于Intent传递对象
public class User implements Serializable {
    private String username; // 用户名
    private List<String> selectedInterests; // 用户选择的兴趣

    // 登录时用的构造方法
    public User(String username) {
        this.username = username;
    }

    // Getter/Setter（用于传递和获取数据）
    public String getUsername() {
        return username;
    }

    public List<String> getSelectedInterests() {
        return selectedInterests;
    }

    public void setSelectedInterests(List<String> selectedInterests) {
        this.selectedInterests = selectedInterests;
    }
}